<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/18
 * Time: 15:35
 */
//$arr = array('tom','jack','frank','andy');
//var_dump($arr);
//$brr = array_splice($arr,1,2);
//var_dump($arr);
//var_dump($brr);



$arr = array('tom','jack','frank','andy');
var_dump($arr);
//$brr = array_splice($arr,1,2,'aaa');
//$brr = array_splice($arr,1,2,['aaa','bbb','ccc']);
$brr = array_splice($arr,1,2,['aaa','bbb',['c','c2']]);
var_dump($arr);
var_dump($brr);